import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

import {HomeComponent} from './home/home.component';
import {LoadModelComponent} from './load-model/load-model.component';
import {CubeComponent} from './cube/cube.component';


const routes: Routes = [
  {path: 'home', component: HomeComponent},
  {path: 'model', component: LoadModelComponent},
  {path: 'cube', component: CubeComponent},
  {path: '', redirectTo: 'home', pathMatch: 'full'},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {
}
